package org.dtree.ow.models;

import org.dtree.ow.base.model.BaseModel;
import org.nutz.dao.entity.annotation.*;

/**
 * Created by dengwubo on 2017/9/19.
 */
@Table("dt_ow_adv_homepage")
public class AdvHomepage extends BaseModel {

    @Name
    @Comment
    @Column("id")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String id;
    @Comment
    @Column("title")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String title;
    @Comment("摘要")
    @Column("summary")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String summary;

    // 配置与案例的一对一关联关系

    @Comment
    @Column("case_id")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String caseId;
    @One(field = "caseId")
    private Case myCase;

    @Comment("关联地址")
    @Column("url")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String url;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public Case getMyCase() {
        return myCase;
    }

    public void setMyCase(Case myCase) {
        this.myCase = myCase;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
